package com.qd.panda.service.third.tencent.result;

import com.cdqidi.config.mybatis.handler.GeoPoint;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
import java.util.Optional;

@Data
@EqualsAndHashCode(callSuper = true)
public class LocationResult extends BaseResult {

    private List<GeoPoint> locations;

    @Override
    public void freeData() {
        Optional.ofNullable(locations).ifPresent(List::clear);
        super.freeData();
    }
}
